
#include "../app_includes.h"

const int16_t wav_data[5][SIGNAL_WAVE_SIZE]={
    {
        128,136,144,152,160,168,175,182,190,197,203,210,216,221,227,232,236,240,
        244,247,250,252,254,254,255,255,255,254,254,252,250,247,244,240,236,
        232,227,221,216,210,203,197,190,182,175,168,160,152,144,136,128,120,
        112,104,96,88,81,74,66,59,53,46,40,35,29,24,20,16,12,9,6,4,2,1,0,0,0,
        1,2,4,6,9,12,16,20,24,29,35,40,46,53,59,66,74,81,88,96,104,112,120
    },//正弦波
    {
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
        0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
        0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,
        255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
        255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255
    },//矩形波
    {
        0,5,10,15,20,26,31,36,41,46,51,56,61,66,71,77,82,87,92,97,102,107,112,117,122,128,
        133,138,143,148,153,158,163,168,173,179,184,189,194,199,204,209,214,219,224,230,
        235,240,245,250,255,250,245,240,235,230,224,219,214,209,204,199,194,189,184,179,
        173,168,163,158,153,148,143,138,133,128,122,117,112,107,102,97,92,87,82,77,71,66,61,56,51,46,41,36,31,26,20,15,10,5
    },//三角波
    {
        0,3,5,8,10,13,15,18,21,23,26,28,31,33,36,39,41,44,46,49,52,54,57,59,62,64,67,70,72,75,
        77,80,82,85,88,90,93,95,98,100,103,106,108,111,113,116,118,121,124,126,129,131,
        134,137,139,142,144,147,149,152,155,157,160,162,165,167,170,173,175,178,180,183,185,
        188,191,193,196,198,201,203,206,209,211,214,216,219,222,224,227,229,232,234,237,240,242,245,247,250,252,255
    },//正锯齿波
};
oscilloscope_t oscilloscope;

uint16_t bsp_adc0_buff[ADC0_BUFF_SIZE];

Board board = {.adc_data.data = &bsp_adc0_buff};

app_mht_device_t app_slave_dev_mht;
